Replace all files except core/database/connect.php